package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.om.entity.Receipt;
import com.jiyun.mapper.ReceiptMapper;
import com.jiyun.service.IReceiptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 签收单表 服务实现类
 * </p>
 *
 * @author zhx
 * @since 2025-02-12
 */
@Service
public class ReceiptServiceImpl extends ServiceImpl<ReceiptMapper, Receipt> implements IReceiptService {
@Autowired
ReceiptMapper receiptMapper;
    @Override
    public Page<Receipt> getAll(Integer pageNum, Integer pageSize, Receipt receipt) {
        Page<Receipt> page = new Page<>(pageNum, pageSize);

        return receiptMapper.getAll(page,receipt);
    }

    @Override
    public List<Receipt> findAll() {

        return receiptMapper.findAll();
    }
}
